package com.example.secondhandspringboot.mapper;

import com.example.secondhandspringboot.domain.entity.Contacts;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 周在林
 * @since 2024-05-16
 */
public interface ContactsMapper extends BaseMapper<Contacts> {

    @Select("select * from contacts where user_id=#{currentUserId} and contact_user_id=#{contactUserId} and deleted=0")
    Contacts getContacts(Long currentUserId, Long contactUserId);
}
